package tree;

public class BinaryTreeTest {

    public static void main(String[] args) {
        int[] pre = {1, 2, 4, 7, 3, 5, 6, 8};
        int[] vin = {4, 7, 2, 1, 5, 3, 8, 6};
        BinaryTree binaryTree = new BinaryTree(pre, vin);
        BinaryTree.TreeNode root = binaryTree.getTreeRoot();
        binaryTree.preOrderSequence(root);
        System.out.println();
        binaryTree.midOrderSequence(root);
        System.out.println();
        binaryTree.postOrderSequence(root);
        System.out.println();
    }

}
